//
//  TanHunHeaderView.h
//  BaseProject
//
//  Created by 王洋 on 2020/12/10.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TanHunTopicCell.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TanHunHeaderViewActionType) {
    //帖子
    TanHunHeaderViewActionType_tiezi,
    //问答
    TanHunHeaderViewActionType_wenda,
    
    TanHunHeaderViewActionType_hot,

    TanHunHeaderViewActionType_new

};

@interface TanHunHeaderView : UIView

@property (weak, nonatomic) IBOutlet UICollectionView *collectionview;

//最新
@property (weak, nonatomic) IBOutlet UIButton *hotestBtn;
//最热
@property (weak, nonatomic) IBOutlet UIButton *newestBtn;


@property (nonatomic, strong) NSMutableArray <CommunityThemeModel*>* themeArray;

@property (nonatomic, copy) void(^TanHunHeaderViewBlock)(TanHunHeaderViewActionType type, NSInteger index);


- (void)fillWith:(NSMutableArray<CommunityThemeModel *>*)themeArray;

+ (CGFloat)calculateHeight;

@end

NS_ASSUME_NONNULL_END
